package com.kun.rental.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kun.rental.entity.CarrentalInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ikun
 * @since 2024-07-04
 */
public interface ICarrentalInfoService extends IService<CarrentalInfo> {

    /**
     * 分页查询
     * @param page
     * @param carrentalInfo
     * @return
     */
    Page<CarrentalInfo> searchByPage(Page<CarrentalInfo> page, CarrentalInfo carrentalInfo);

    /**
     * 删除
     * @param ids
     * @return
     */
    boolean delete(String ids);


    /**
     * 根据车牌号查询车辆信息
     * @param num
     * @return
     */
    CarrentalInfo selectByCarrentalNum(String num);

    /**
     * 查询待保养车辆
     * @return
     */
    List<CarrentalInfo> toBeMaintain();
}
